package cam.School.DataAccessObject;

import java.sql.SQLException;
import java.util.List;

import cam.School.DAOException.DAOException;
import cam.School.DataTransfertObject.CallResult;
import cam.School.DataTransfertObject.InfrastructurCategoryDTO;
import cam.School.DataTransfertObject.InfrastructurDTO;
import cam.School.DataTransfertObject.MaterialDTO;

public interface InfrastructurCategoryDAO {

	public List<InfrastructurCategoryDTO> getAllClasses();
	public List<InfrastructurCategoryDTO> getAllCategory();
	public InfrastructurCategoryDTO getById(Long id);
	public void create(InfrastructurCategoryDTO infrastructurCategory);
	public void update(InfrastructurCategoryDTO infrastructurCategory);
	
	public boolean delete(int id);
	
	public InfrastructurCategoryDTO getByType(String type);

	public InfrastructurCategoryDTO getByName(String name);
	public InfrastructurCategoryDTO getCategoryByName(String categoryName);
	
}
